home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 016a / gofer221.zip / CH03 < prev    next >
Text File  |  1991-11-20  |  2KB  |  67 lines

  1.  
  2.  
  3. Introduction to Gofer         3. STARTING GOFER                                 
  4.  
  5.  
  6. 3. STARTING GOFER
  7.  
  8. The Gofer interpreter is usually entered by giving the command `gofer',
  9. after which a display something like the  following  will  normally  be
  10. produced:
  11.  
  12.     Gofer Version 2.20
  13.  
  14.     Reading script file "/gofer/prelude":
  15.     Parsing........................................................
  16.     Dependency analysis............................................
  17.     Type checking..................................................
  18.     Compiling......................................................
  19.  
  20.     Gofer session for:
  21.     /gofer/prelude
  22.     Type :? for help
  23.     ?
  24.  
  25. The file name "/gofer/prelude" mentioned in the  output  above  is  the
  26. name of a file of standard definitions which are loaded into Gofer each
  27. time that the interpreter is started.  By default,  Gofer  reads  these
  28. definitions from  a  file  called  "prelude"  in  the  current  working
  29. directory.  Alternatively you can set the environment variable GOFER to
  30. the name of the  standard  prelude  file,  which  will  then  be  used,
  31. whatever the current working directory might be.
  32.  
  33. Most commands in Gofer take the form of a colon followed by one or more
  34. characters which distinguish one command from another.  There  are  two
  35. commands which are particularly worth remembering:
  36.  
  37.   o  :q  exits the  Gofer  interpreter.   On most systems, you can also
  38.      exit from Gofer by typing the end of  file  character  (^Z  on  an
  39.      MS-DOS machine, usually ^D on a unix based machine).
  40.  
  41.   o  :?  prints a list of all the commands,  which can be useful if you
  42.      forget the name of the command that you want to use.
  43.  
  44. The complete range of commands supported by the  Gofer  interpreter  is
  45. described in appendix F.
  46.  
  47. Note that the interrupt key (^C on most systems) can  be  used  at  any
  48. time whilst using Gofer to abandon the process of reading in a file  of
  49. function definitions or the evaluation  of  an  expression.   When  the
  50. interrupt key is detected, Gofer prints the string "{Interrupted!}" and
  51. prints the "? " prompt so that further commands can be entered.
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.                                       4
  65.  
  66.  
  67.